<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>ribaoInfo.html</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" type="text/css"
			href="css/jquery.mobile-1.4.5.min.css">
		<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="js/jquery.mobile-1.4.5.js"></script>
	</head>

	<body>
		<script type="text/javascript">
	   $(function(){
	        //日报项详情-返回
			$("#backInfoId").bind('click',function(){
	             $.mobile.changePage("ribao.html", {transition: "slide"});
			     $('#itemsId').listview('refresh');
			     $("#listMsgId").html("");
            });
            
            
            //获取日报详情
             $.ajax({
				url: "../workReportApp!queryItemInfos",
				data: {
			},
			success: function(data) {
				var obj = eval('(' + data + ')');
				if (obj.result == 1) {
				     if(obj.datas.length>0){
					     var htmlVar = "<table border='1px' bordercolor='#EEB422' cellspacing='0' cellpadding='8' width='100%'><tr bgcolor='#008B00' style='color:white'><th style='width:10%'>项</th><th>详情</th></tr>";
					     for(var i=0;i<obj.datas.length;i++){
					        htmlVar = htmlVar+"<tr  bgcolor='#FAFAD2'><td align='center'>"+(i+1)+"</td><td>"+obj.datas[i].content+"</td></tr>";
					     }
					     htmlVar = htmlVar+"</table>";
					     $("#contentId").html(htmlVar);
				     }else{
				         $("#contentId").html("<center><br/><br/><div>暂无相关信息</div></center>");
				     }
				     $("#rbNameId").html(obj.workReportName);
				}else if(obj.result == 2){  //用户失效
				    $.mobile.changePage("index.html", {transition: "slide"});
				}else{
				    alert("网络链接异常!");
				}
			  }
			});
	   });
	    </script>
		<div data-role="header" data-position="fixed">
			<a data-role="button" data-icon="back" id="backInfoId">返回</a>
			<h1>
				<span id='rbNameId'></span>
			</h1>
		</div>
		<div data-role="content">
		    <div id='contentId'></div>
		</div>
	</body>
</html>
